Fix png support to allow compiling with libpng-1.5 (Bug#7908).
authorChong Yidong <cyd@stupidchicken.com>
Sat, 29 Jan 2011 21:28:26 +0000 (16:28 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 29 Jan 2011 21:28:26 +0000 (16:28 -0500)
commitff9a468cf786c9653e9175a5482342bb02573c36
tree8a576b6f41f3f39794eb7966ce4abafecec14c9d
parentd3b3388ff002261f370d0cc1ad0c4e2445d99394
Fix png support to allow compiling with libpng-1.5 (Bug#7908).

* image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
function definitions for compiling with libpng-1.5.
(PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
(my_png_error, png_load): Use them.  Suggested by Thomas Klausner.
src/ChangeLog
src/image.c